package com.offdissys.common.utils.domain;

import cn.hutool.core.math.MathUtil;
import cn.hutool.core.util.RandomUtil;

/**
 * @author ZhangHaiWen
 * @title: BaseTokenObj
 * @projectName parent
 * @description: token基类
 * @date 2022/3/1015:16
 */
public class BaseTokenObj {

    private String key;

    public BaseTokenObj(String key){
        this.key = key;
    }

    public BaseTokenObj(){
        this.key = RandomUtil.randomString(8);
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
